<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:38:"template/admin/default/menu\index.html";i:1494934930;s:41:"template/admin/default/Public\header.html";i:1496221405;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo $site['name']; ?></title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="__STATIC__bootstrap-3.3.0/dist/css/bootstrap.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="__STATIC__jquery-3.1.1.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="__STATIC__bootstrap-3.3.0/dist/js/bootstrap.min.js"></script>
    <!--载入登陆css-->
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_qq579wn8iod2t9.css">
    <link rel="stylesheet" href="__PUBLIC__css/style.css">
    <script src="__PUBLIC__js/screen.js"></script>
</head>

<body>
<style>
    .sub .ttl{padding-left: 30px;}
</style>

<div class="wrap">
    <!--碎屑路径-->
    <div class="debris_nav">
        <ol class="breadcrumb">
            <li><a href="#">系统设置</a></li>
            <li class="active">网站设置</li>
        </ol>
    </div>
    <div class="blank"></div>
    <!--查询框-->
    <div id="serch">
        <label><input type="text" value="" class="form-control" placeholder="请输入关键词"></label>
        <label>
            <select name="" class="form-control">
                <option value="">启用</option>
                <option value="">禁用</option>
            </select>
        </label>
        <label><input type="submit" value="查询"  class="form-control"></label>
    </div>
    <div class="blank"></div>
    <!--列表内容-->
     <div class="content" id="content_list">
        <div class="add_nav">
            <ul>
                <li><a href="<?php echo url('menu/add'); ?>"><i class="iconfont icon-tianjia"></i><span>添加</span></a> </li>
            </ul>
        </div>
         <!-- 表格列表 -->
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab1">
             <thead>
                 <tr>
                     <td width="100">ID</td>
                     <td>菜单标题</td>

                     <td>导航显示</td>
                     <td>分类属性</td>
                     <td>排序</td>
                     <td width="140" align="center">时间</td>
                     <td width="150" align="center">操作</td>
                 </tr>
             </thead>
             <tbody>
                <?php if(is_array($menuAdmin) || $menuAdmin instanceof \think\Collection || $menuAdmin instanceof \think\Paginator): $i = 0; $__LIST__ = $menuAdmin;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                 <tr >
                     <td><input type="hidden" class="checkbox"  value="<?php echo $vo['id']; ?>"> <input name="id[]" value="<?php echo $vo['id']; ?>" class="form-control listorder" size="5"></td>
                     <td><b><?php echo $vo['title']; ?></b></td>

                     <td><i class="iconfont icon-iconfontcheck  <?php if($vo['is_show'] == 1): ?>show<?php else: ?>gray<?php endif; ?>" title="<?php echo $vo['is_show']; ?>"></i></td>
                     <td><?php if($vo['is_delete'] == 1): ?>系统分类<?php endif; ?></td>
                     <td><input name="id[]" value="<?php echo $vo['sort']; ?>" class="form-control listorder" size="5"></td>
                     <td><?php echo date('Y-m-d H:i:s',$vo['add_time']); ?></td>
                     <td>
                         <div class="operat">
                             <label><a href="<?php echo url('menu/edit',array('id'=>$vo['id'])); ?>" class="bg_blue_a">编辑</a></label>
                             <label><a href="<?php echo url('menu/delete',array('id'=>$vo['id'])); ?>" class="bg_green_a">删除</a></label>
                         </div>
                     </td>
                 </tr>
                <?php if(!(empty($vo['child']) || (($vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator ) && $vo['child']->isEmpty()))): if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?>
                <tr class="sub">
                    <td> <input name="id[]" value="<?php echo $sub['id']; ?>" class="form-control listorder" size="5"></td>
                    <td><span class="ttl">|- <?php echo $sub['title']; ?></span></td>

                    <td><i class="iconfont icon-iconfontcheck   <?php if($sub['is_show'] == 1): ?>show<?php else: ?>gray<?php endif; ?>" title="<?php echo $sub['is_show']; ?>"></i></td>
                    <td><?php if($sub['is_delete'] == 1): ?>系统分类<?php endif; ?></td>
                    <td><input name="id[]" value="<?php echo $sub['sort']; ?>" class="form-control listorder" size="5"></td>
                    <td><?php echo date('Y-m-d H:i:s',$sub['add_time']); ?></td>
                    <td>
                        <div class="operat">
                            <label><a href="<?php echo url('menu/edit',array('id'=>$sub['id'])); ?>" class="bg_blue_a">编辑</a></label>
                            <label><a href="<?php echo url('menu/delete',array('id'=>$sub['id'])); ?>" class="bg_green_a">删除</a></label>
                        </div>
                    </td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; endif; endforeach; endif; else: echo "" ;endif; ?>

             </tbody>
         </table>
         <!-- 表格列表 End -->
     </div>
    <!--列表内容-->
</div>
</body>
</html>